package com.shujia.wyh.day12.ketang;

class A2{
    private int a = 2;
    A2(){
        a=3;
        System.out.println(a);
    }
    A2(int b){
        this.a = b;
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }
}

class B2 extends A2{
    B2(){
        System.out.println("dasdada");
    }
}
public class Test {
    public static void main(String[] args) {
        A2 a2 = new A2(12);
        System.out.println("qq"+a2.getA());
        B2 b2 = new B2();
        System.out.println("ww"+b2.getA());
    }
}
